package com.icss.train_sys_back.service.home;

import com.icss.train_sys_back.entity.ResponseResult;
import com.icss.train_sys_back.entity.home.CreateOrderDTO;
import com.icss.train_sys_back.entity.home.OrderEntity;
import com.icss.train_sys_back.entity.ticket_manage.ChangeTicketEntity;
import com.icss.train_sys_back.entity.ticket_manage.TicketEntity;

import java.util.List;

/**
 * @Author 小泽
 * @createTime 2025/10/13 10:34
 */
public interface OrderService {
    //创建订单
    ResponseResult createOrder(CreateOrderDTO createOrder);

    OrderEntity getOrderInfo(String orderId);

    //取消订单
    boolean cancelOrder(String orderId);

    //改签车次查询  startStationId = 3，endStationId = 15，date = 2025-11-19，timeRange = 06:00-12:00，
    List<TicketEntity> getNewTrainTickets(Integer startStationId, Integer endStationId, String date, String timeRange);

    //改签请求
    ResponseResult changeTicket(Integer userId, ChangeTicketEntity changeTicket);
}
